import './assets/main.css'
//导入mock
import './mock/'

import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import axios from './pluging/axiosInstance.js'

// import { id } from './views/Test.vue'

const app = createApp(App)


// 配置全局变量 页面中使用 inject 接收
// app.provide('global',{
//   id
// })



app.use(router)
app.use(ElementPlus)
app.mount('#app')



          //将这个vue3app全局挂载到#app元素上
app.config.globalProperties.$axios=axios;  //配置axios的全局引用
// app.config.globalProperties.$id=id;  //配置axios的全局引用

